package com.fellw.mango.real_person.authentication.api;

import lombok.Data;

/**
 * 人脸识别模型
 */
public interface IDFaceIdentifyModel {
    /**
     * @return 面部照片
     */
    String getPersonalFaceImgUrl();

    interface Setting {
        /**
         * @param value 面部照片
         */
        void setPersonalFaceImgUrl(String value);

        default void of(IDFaceIdentifyModel model) {
            setPersonalFaceImgUrl(model.getPersonalFaceImgUrl());
        }
    }

    @Data
    class IDFaceIdentifyData implements IDFaceIdentifyModel, Setting {
        private String personalFaceImgUrl;
    }
}
